import fetch from 'utils/fetch';

// 产品期限
export function getProductDueList() {
  return fetch({
    url: '/api/admin/investorReport/m/get/condition',
    method: 'get'
  });
}

// M1~M3报表分⻚页
export function getInvestorReportPage(query) {
  return fetch({
    url: '/api/admin/investorReport/m/find/page',
    method: 'post',
    data: query
  })
}
// M1~M3报表信息导出
export function exportInvestorReport(query) {
  return fetch({
    url: '/api/admin/investorReport/m/find/and/export',
    method: 'post',
    data: query
  })
}
// M1~M3信息总览
export function getInvestorReportScreen(query) {
  return fetch({
    url: '/api/admin/investorReport/m/find/report/screening',
    method: 'post',
    data: query
  })
}
// DPD信息总览
export function getInvestorDPDReportScreen(query) {
  return fetch({
    url: '/api/admin/investorReport/dpd/find/report/screening',
    method: 'post',
    data: query
  })
}
// DPD报表分⻚页
export function getInvestorDPDReportPage(query) {
  return fetch({
    url: '/api/admin/investorReport/dpd/find/page',
    method: 'post',
    data: query
  })
}
// DPD报表导出查询
export function exportInvestorDPDReport(query) {
  return fetch({
    url: '/api/admin/investorReport/dpd/find/and/export',
    method: 'post',
    data: query
  })
}
// 放款计划柱图
export function getBarGraphCount(query) {
  return fetch({
    url: '/api/admin/loan/report/getBarGraphCount',
    method: 'get',
    params: query
  })
}
// 放款计划折线图
export function getCustomerRateCount(query) {
  return fetch({
    url: '/api/admin/loan/report/getCustomerRateCount',
    method: 'get',
    params: query
  })
}